<style>

</style>
<?  $ci = &get_instance();  
$categories = $ci->category->getCategoriasConCursos($ci->session->userdata('city'));

$cat_select = $ci->uri->segment(3); ?>
<div class="span3 categorias">
            <div class="titles">CATEGORIAS</div>
            <ul >
                <?php
                foreach ($categories as $row) {
                    if ($row->id == $cat_select) {
                        ?>     
                        <li><a href="<?= site_url('categoria/view/' . $row->slug) ?>"><?php echo $row->name ?></a></li>
                        <?php
                    } else {
                        ?>    
                        <li><a href="<?= site_url('categoria/view/' . $row->slug) ?>"><?php echo $row->name ?></a></li>
                        <?php
                    }
                }
                ?>               
            </ul>


<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/es_LA/all.js#xfbml=1&appId=231351236886950";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
            
            
           
<div class="fb-like-box" data-href="https://www.facebook.com/expocarreras?ref=hl" data-width="190" data-height="290" data-colorscheme="light" data-show-faces="true" data-header="false" data-stream="true" data-show-border="true" style="margin-top: 30px;"></div>
        </div>